﻿using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace BugSysSolution.MasterPage
{
    public partial class EditMaster : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Users us = Session["user"] as Users;
            if (us == null)
            {
                Response.Redirect("~/Login.aspx");
            }
            else {
                if (us.IsAdmin != CommonCs.Exceptions.AdminYes.ToString())
                {
                    Response.Redirect("~/main.aspx");
                }
            }
        }
    }
}